Dynomotion

Group: DynoMotion Message: 461 From: Azd M Date: 6/21/2010
Subject: GetStatus timing
hi all
I am trying to get the axes behavior in time form a PC program. reading the KFlop status in fixed intervals using OnTimer functions is ok for screen display but for analysis purpose the OnTimer functions in vC++ or Vb is not accurate. Is there a way to get the KFlop time together with the status? or i have to write a C program thread and print the time with status?
thanks
Azedd
Group: DynoMotion Message: 462 From: Tom Kerekes Date: 6/21/2010
Subject: Re: GetStatus timing
Hi Azedd,

No, (we probably should have included a time stamp in the status).  If you have an unused axis channel then an ugly workaround might be to have a User program running that sets an unused axis variable like the Dest to the current time. 
 
main()
{
    for (;;) ch7->Dest = WaitNextTimeSlice();
}
But probably the best approach would be to write a C Program to capture whatever data you are interested in at whatever rate you need and place it into the 8 MByte Gather Buffer, then upload it using the GetGather Console command.  Note that if you are uploading multiple lines of data you must do the GetToken, ReleaseToken commands (like you did with reading the status) to be multi-thread safe.
 
There is an C program example called CaptureXYMotion that may help, although it prints the data to the Console Screen rather than leaving it to be uploaded by a PC application.
 
Thanks
TK